package com.education.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.education.project.mapper.WebUserMapper;
import com.education.project.model.WebUser;
import com.education.project.service.WebUserService;

@Service
public class WebUserServiceImpl implements WebUserService {
	@Autowired
	private WebUserMapper webUserMapper;
	
	@Override
	public WebUser login(String username, String password) {
		return webUserMapper.login(username, password);
	}

	@Override
	@Transactional
	public void updatePwd(Integer webUserId, String password) {
		webUserMapper.updatePwd(webUserId, password);
	}

}
